package com.first.entity;


import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

@Data
public class CourseEntity {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "上课时间")
    private String courseTime;

    @ApiModelProperty(value = "上课人数")
    private Integer courseNumber;

    @ApiModelProperty(value = "课时")
    private Integer courseHour;

    public CourseEntity(String courseTime, Integer courseNumber, Integer courseHour){
        this.courseNumber = courseNumber;
        this.courseHour = courseHour;
        this.courseTime = courseTime;
    }

    public CourseEntity(Integer id,String courseTime, Integer courseNumber, Integer courseHour){
        this.id = id;
        this.courseNumber = courseNumber;
        this.courseHour = courseHour;
        this.courseTime = courseTime;
    }

    public Integer getId() {
        return id;
    }


    public String getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(String courseTime) {
        this.courseTime = courseTime;
    }

    public Integer getCourseNumber() {
        return courseNumber;
    }

    public void setCourseNumber(Integer courseNumber) {
        this.courseNumber = courseNumber;
    }

    public Integer getCourseHour() {
        return courseHour;
    }

    public void setCourseHour(Integer courseHour) {
        this.courseHour = courseHour;
    }

    @Override
    public String toString() {
        return "CourseEntity{" +
                "id=" + id +
                ", courseTime='" + courseTime + '\'' +
                ", courseNumber=" + courseNumber +
                ", courseHour=" + courseHour +
                '}';
    }
}
